class DocMailer < ActionMailer::Base
  default from: Rails.application.secrets.email_provider_username


  def share(doc,from_user,to_user)
  	@doc = doc
  	@from_user = from_user
  	@to_user = to_user
  	mail(to: @to_user.email, subject: "CMEC文档管理系统-共享文件")
  end

end
